Always build docs
authorFelix Krull <f_krull@gmx.de>
Wed, 17 Oct 2018 23:37:50 +0000 (01:37 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:53 +0000 (12:53 -0400)
rust-bindings/rust/.gitlab-ci.yml

index fe26571b774d81d20c81a95d68ef15fd1d6571d4..d65dc39ea4e35afaeea29db01ecef279fef6ab68 100644 (file)
@@ -7,7 +7,7 @@ before_script:
 
 stages:
 - build
-- doc
+- docs
 - publish
 
 libostree-sys:
@@ -39,10 +39,18 @@ libostree_nightly:
   allow_failure: true
 
 # docs
-pages:
-  stage: doc
+docs:
+  stage: docs
   script:
   - cargo doc --verbose --features dox,lgpl-docs
+  artifacts:
+    paths:
+    - target/doc
+
+# publish
+pages:
+  stage: publish
+  script:
   - cp -r target/doc public
   artifacts:
     paths:
@@ -50,11 +58,10 @@ pages:
   only:
   - master
 
-# publish
 publish_libostree-sys:
   stage: publish
   script:
-    - cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --token $CRATES_IO_TOKEN
+  - cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --token $CRATES_IO_TOKEN
   when: manual
 
 publish_libostree: